package forces;
import physicalObjects.Mass;
import simulation.Global;

/**
 * 
 * @author Bruce Fu
 *
 */
public class Gravity extends Force{
    /**
     * Calculate the gravity force
     */
    public Gravity() {
        super(0,0);  
    }
    
    public void setGravity(Mass myMass) {
        setDirection(Global.getGravityDirection());
        setMagnitude(Global.getGravityDirection() * myMass.getMass());
    }

}
